package com.svse.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Copyright 上海危网信息科技有限公司版权所有
 * @company wwsoft
 * @Date 2019/10/15 9:57
 */
@Entity
@Data
@Table(name = "demo")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer"})
public class DemoJpaEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 姓名
     */
    @Column(name = "name")
    private String name;
    /**
     * 性别
     */
    @Column(name = "sex")
    private String sex;

    /**
     * 年龄
     */
    @Column(name = "age")
    private Integer age;

    /**
     * 生日
     */
    @Column(name = "birthday")
    private Date birthday;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 个人简介
     */
    @Column(name = "content")
    private String content;

    @Transient
    private String hobby;
}
